﻿
using BCCommon;
using BCDto.MySql.BusinessFlowInstance;
using System;
using System.Collections.Generic;

namespace BCService.OA.BusinessFlowInstance
{
    /// <summary>
    /// OA系统业务流实例
    /// </summary>
    public interface IBusinessFlowInstanceService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="businessFlowInstanceId">OA系统业务流实例Id</param>
        bool Exists(long businessFlowInstanceId);
        /// <summary>
        /// 添加OA系统业务流实例
        /// </summary>
        /// <param name="requestDto">OA系统业务流实例信息</param>
        BusinessFlowInstanceDto Add(BusinessFlowInstanceRequestDto requestDto);
        /// <summary>
        /// 更新OA系统业务流实例
        /// </summary>
        /// <param name="putDto">OA系统业务流实例信息</param>
        BusinessFlowInstanceDto Update(BusinessFlowInstancePutDto putDto);
        /// <summary>
        /// 获取OA系统业务流实例
        /// </summary>
        /// <param name="businessFlowInstanceId">OA系统业务流实例Id</param>
        BusinessFlowInstanceDto GetEntity(long businessFlowInstanceId);
        /// <summary>
        /// 获取OA系统业务流实例列表
        /// </summary>
        /// <param name="companyId">公司Id</param>
        IEnumerable<BusinessFlowInstanceDto> GetList(int companyId);
        /// <summary>
        /// 获取OA系统业务流实例分页列表
        /// </summary>
        /// <param name="businessFlowModelId">业务流模式Id</param>
        /// <param name="businessFlowInstanceName">OA系统业务流实例名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统业务流实例每页数据条数</param>
        PageableList<BusinessFlowInstanceDto> Query(long? businessFlowModelId, string businessFlowInstanceName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}